/*
 * EasyBounceRankDataReader.h
 *
 *  Created on: May 21, 2009
 *      Author: Cedric
 */

#ifndef CEASYBOUNCERANKDATAREADER_H_
#define CEASYBOUNCERANKDATAREADER_H_

#include "EasyBounceRankContainer.h"

const TInt KMaxLength = 32;

class CEasyBounceDataReader : public CActive
	{
public:
	~CEasyBounceDataReader();
	static CEasyBounceDataReader* NewLC();
	static CEasyBounceDataReader* NewL();
	void ReadDataL();
	
protected:
	CEasyBounceDataReader();
	void ConstructL();
	
protected:
	void RunL();
	void DoCancel();
	TInt RunError();

private:
	RFs iFs;
	RFile iRankDataFile;
	TBuf8<KMaxLength> *iRawRankData;
	TBuf16<KMaxLength> *iRankData;
	CEasyBounceRankContainer* iRankContainer;
	};
#endif /* CEASYBOUNCERANKDATAREADER_H_ */
